package com.dtdream.emr;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

import java.net.URLDecoder;

public final class UrlDecode extends UDF {

    public String evaluate(String s) throws Exception {
        if (null == s) {
            return "NULL";
        }
        return URLDecoder.decode(s, "utf-8");
    }
}
